﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using zhangmenren.Db;
using zhangmenren.Models;
using zhangmenren.Models.Enums;

namespace zhangmenren.IService
{
    public interface IBannerService: IDependency
    {
        Task<int> Add(BannerEntity banner);

        Task<IEnumerable<BannerEntity>> Selelct();

        Task<int> Del(int id);

        Task<IEnumerable<BannerEntity>> Find(BannerType type);

        Task<int> EditState(int id,bool state);
    }
}
